package com.Txunda.fxw.ui.activity.other;

import com.Txunda.fxw.R;
import com.Txunda.fxw.ui.base.BaseAty;
import com.lidroid.xutils.view.annotation.ViewInject;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.TextView;

public class LawWebAty extends BaseAty {

    @ViewInject(R.id.aty_title3_tv_center)
    private TextView aty_title3_tv_center;
    @ViewInject(R.id.law_service_wb)
    private WebView law_service_wb;
    private WebSettings set;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        set = law_service_wb.getSettings();
        set.setTextSize(WebSettings.TextSize.SMALLER);
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.aty_lawweb;
    }

    @Override
    protected void initialized() {
        aty_title3_tv_center.setText(getIntent().getStringExtra("name"));
        law_service_wb.loadData(getIntent().getStringExtra("text"), "text/html; charset=UTF-8", null);
    }

    @Override
    protected void requestData() {

    }

}
